package com.nt.mes_leader.base_activity;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.nt.mes_leader.R;

/**
 * Created by netuo020 on 2017/9/18.
 */
public abstract class BaseBackActivity extends BaseActivity{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        TextView back = (TextView) findViewById(R.id.header_back);
        back.setOnClickListener(mClickListener);
    }

    View.OnClickListener mClickListener = new View.OnClickListener(){

        @Override
        public void onClick(View view) {
            switch (view.getId()){
                case R.id.header_back:
                    BaseBackActivity.this.finish();
                    break;
            }
        }
    };
}
